{include file=header.html}
<script language="javascript" type="text/javascript" src="{res file=DatePicker/WdatePicker.js}"></script>
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<script language="javascript" type="text/javascript" src="{res file=js/common.js}"></script>
<body>
<!--收起展开 开始 -->
<!--<div class="sub-body" style="padding:20px 25px 0 25px;">
  <a href="" onClick="$('#search_box').slideToggle();return false;">收起/展开</a>
</div> -->
<!--收起展开 结束 -->
<div class="sub-body" id="search_box">
    <h3 class="title-1" style="display:none;">{$lang.purchase_bulk_list}</h3>
    <form method="get" action="" id="search_form">
		<input type="hidden" name="app" value="purchase" />
		<input type="hidden" name="act" value="sourcing_bulk" />
		<table cellspacing="0" cellpadding="0" class="search" width="80%">
			<tr>
				<th width="100">{$lang.merchandiser}：</th>
				<td width="200"><select name="merchandiser">
						<option value=""></option>
						<!--{foreach from=$merchandiser_list item=merchandiser}-->
						<option value="{$merchandiser.user_id}"{if $merchandiser.user_id == $smarty.get.merchandiser} selected{/if}>{$merchandiser.user_name}</option>
						<!--{/foreach}-->
					</select></td>
				<th width="100">品&nbsp;&nbsp;&nbsp; 牌：</th>
				<td width="200"><select name="brand_id" id="brand_id_search">
						<option value=""></option>
						<!--{foreach from=$brand_list item=brand}-->
						<option value="{$brand.brand_id}" {if $brand.brand_id == $smarty.get.brand_id}selected{/if}>{$brand.brand_name|escape}&nbsp;&nbsp;({$brand.company_name|escape})</option>
						<!--{/foreach}-->
					</select></td>
				<th width="100">{$lang.buyer_name}：</th>
				<td width="200"><select name="buyer" id="buyer_id_search">
						<option value=""></option>
						<!--{foreach from=$buyer_list item=buyer}-->
						<option value="{$buyer.user_id}"{if $buyer.user_id == $smarty.get.buyer} selected{/if}>{$buyer.user_name}</option>
						<!--{/foreach}-->
					</select></td>
				<td width="100" rowspan="2"><input name="search" type="submit" class="inquiry" value="{$lang.search}"/></td>
			</tr>
			<tr>
				<th>{$lang.order_sn}：</th>
				<td><input type="text" name="order_sn" class="input-1" value="{$smarty.get.order_sn}" /></td>
				<th>{$lang.sourcing_sn}：</th>
				<td><input type="text" name="bulk_sn" class="input-1" value="{$smarty.get.bulk_sn}" /></td>
				<th>{$lang.sourcing_status}：</th>
				<td><select name="bulk_status" id="bulk_status">
						<option value=""></option>
						{html_options options=$lang.bulk_statuies selected=$smarty.get.bulk_status}
					</select></td>
			</tr>
		</table>
	</form>
  <div class="tab_info">
  <div class="tab-title-1">
  	<span><a href="{url app=purchase&act=sourcing_list}" style="text-decoration: none;">头板</a></span>
  	<span><a href="{url app=purchase&act=sourcing_status}" style="text-decoration: none;">生产板</a></span>
  </div>
    <table width="100%" cellspacing="0" cellpadding="0" class="tab-display" id="tab-color1">
	  	<tr>
	        <th width="4%">{$lang.No}</th>
	        <th width="7%">{$lang.bulk_time}</th>
			<th width="9%">{$lang.order_sn}</th>
			<th width="7%">{$lang.sourcing_sn}</th>
			<th width="7%">图片</th>
	        <th width="7%" type="order" field="brand_name" order="ASC">{$lang.brand_name}</th>
	        <th width="7%" type="order" field="buyer_name" order="ASC">{$lang.buyer_name}</th>
	        <th width="7%" type="order" field="merchandiser" order="ASC">{$lang.merchandiser}</th>
	        <th width="7%">报价</th>
	        <th width="7%" type="order" field="o.status" order="ASC">{$lang.ord_status}</th>
	        <th width="7%">{$lang.sourcing_status}</th>
	        <th width="7%">{$lang.if_print}</th>
	      </tr>
		  <!--{foreach from=$sour_list item=sours name=ss}-->
	      <tr>
	        <td>{$smarty.foreach.ss.iteration}</td>
	        <td>{$sours.bulk_time|date}</a></td>
			<td>{$sours.order_sn|escape}</td>
			<td><a style="color:blue" href="
	         {url app=purchase&act=bulk_sour&id=$sours.bulk_id&print=view}
	        ">{$sours.bulk_sn|escape}</a></td>
	        <td><a href="{$sours.front_pic|escape}" target="_blank"><img src="{$sours.front_pic|escape}" width="80" style="border:none;" ></a></td>
	        <td>{$sours.brand_name|escape}</td>
	        <td>{$sours.buyer_name|escape}</td>
	        <td>{$sours.merchandiser|escape}</td>
	        <td>{$sours.factory_price|escape}</td>
	        <td>{$lang.order_status.$sours.status}</td>
	        <td>{$lang.bulk_statuies.$sours.bulk_status}</td>
	        <td>{$lang.yes_or_no.$sours.if_print}</td>
	      </tr>
		  <!--{/foreach}-->
         </table>

  </div>
  {include file=page.html}
</div>
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</body>
</html>